<form class="layui-form ajax _form" method="post" action="{if condition=" isset($data.user_id) "}{:url('home/User/add_recharge','uid='.$data['user_id'])}{/if}">
    <div class="layui-form-item">
        <label class="layui-form-label"> 操作对象 </label>
        <div class="layui-input-block">
             <input disabled value="正在给{$data.user_name|default=''}进行充值" class = "layui-input"/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label" > 充值类型 </label>
        <div class="layui-input-block">
            <input type="radio"  name="recharge_type" value="1" checked title = "金币">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label"> 金额 </label>
        <div class="layui-input-block">
            <input type="text" class="layui-input" placeholder="0"  name="recharge_money" data-type="number" data-decimal="0" data-name="">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label"> 手机号</label>
        <div class="layui-input-block">
            <input disabled class = "layui-input" value="{if condition="empty($data['mobile'])"}电话为空{else/}{$data.mobile}{/if}"/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label"> 邮箱</label>
        <div class="layui-input-block">
           <input disabled class = "layui-input" value="{if condition="empty($data['email'])"}邮箱为空{else/}{$data.email}{/if}"/>
        </div>
    </div>
    <div class="layui-form-item" style = "text-align:center;">
        <button class="layui-btn layui-btn-success" type="submit">
            <i class="layui-icon layui-icon-ok"></i> 提交
        </button>
        <button class="layui-btn layui-btn-primary" type="reset">
            <i class="layui-icon layui-icon-refresh"></i> 重置
        </button>
    </div>
</form>
